@extends('layout.master')

@section('content')
    <div class="row">
        <div class="col-md-8">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">{{ $product->name }}</h3>
                </div>
                <div class="panel-body">
                    <div class="row" style="padding-left: 20px;padding-right: 20px;">
                        <h4 class="text-primary">相关下载</h4>
                        <div class="bg-primary" style="height: 5px;margin-bottom: 20px;border-radius: 3px;"></div>
                        <div class="row">
                            <div class="col-md-6">
                                <img src="{{ asset('upload/'.$product->thumbnail) }}" style="width: 300px;height: 200px;">
                            </div>
                            <div class="col-md-4">
                                <div class="list-group">
                                    @foreach($product->files as $file)
                                        <a href="{{ route('download', ['file' => $file]) }}"
                                           class="list-group-item mylist1 list-group-item-info" target="_blank">
                                            {{ $product->file_names[$loop->index] }}
                                        </a>
                                    @endforeach
                                </div>
                            </div>
                        </div>
                        <h4 class="text-primary" style="margin-top: 30px;">产品介绍</h4>
                        <div class="bg-primary" style="height: 5px;margin-bottom: 20px;border-radius: 3px;"></div>
                        <div>
                            {!! $product->content !!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        @include('layout.right')
    </div>
@endsection